/*
 * Element.h
 *
 *  Created on: Apr 20, 2011
 *      Author: gilang
 */

#ifndef ELEMENT_H_
#define ELEMENT_H_
#include <list>
#include "Node.h"

#define VOL_ELEMENT 3
#define TRIANGULAR 2
#define LINE 1

class Element {
protected:
	int size;
	Node *node;
	Element *nextElement;
public:
	Element();
	Element(int);

	virtual ~Element();
	virtual void setNodes(Node*);
	virtual Node* getNodes();
	virtual void setNode(int,Node);
	virtual Node getNode(int);
	virtual void setNodeCoord(int,double*);
	virtual bool isShared(Element&);
	virtual void setNextElement(Element*);
	virtual Element* getNextElement();
};

#endif /* ELEMENT_H_ */
